FROM openjdk:8-jre-alpine

ENV TZ=Asia/Shanghai \
    SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    JAVA_OPTS=""

ADD patrol-*.war /patrol.war
ADD http://dl.hc-yun.com/soft/wait /wait
ADD entrypoint.sh /usr/local/bin/entrypoint.sh

EXPOSE 8060

ENTRYPOINT ["entrypoint.sh"]

CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /patrol.war